<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>在线答题系统</title>
</head>
<body          background="234.jpg">
	<h1 align="center">在线答题系统</h1>
	<!--
		<a href="admin/index.php?c=user&m=listusers">后台管理</a>
		-->
	<h3>欢迎 <?php 
		session_start();
	if(isset($_SESSION["user"]))
		echo $_SESSION["user"];
	 ?> 同学！</h3>
	 <h3><a href="index.php?c=index&m=logout">注销</a></h3>
	 <center>选择试卷类型</center>
	 </br>
	 <table align="center" border="1">
	 <tr>
	 	<th><h1>学科</h1></th>
	 </tr>
	<?php 
		
		foreach($data['test'] as $row)
		{	
			echo '<tr>';
			echo '<th><h2><a href="index.php?c=index&m=usertest&pid='.$row['pid'].'">'.$row['pname'].'</h2></th>';
			//echo '</br>';
			echo '</tr>';
		}
		echo '</table>';
	 ?>
	 	
	 
</body>
</html>